package com.example.litterpainterdemo.db

import android.graphics.Bitmap
import android.os.Parcelable
import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey
import kotlinx.android.parcel.Parcelize
import java.io.Serializable

//定义一个表
@Parcelize
@Entity(tableName = "picture_table")
data class Picture(
    @PrimaryKey(autoGenerate = true)
    val pid:Int,
    var name:String,
    var time:String,
    var url:String,
    @ColumnInfo(name = "thumbnail_bitmap")
    var thumbnail:Bitmap
):Parcelable